package com.hsj.demo.service;

import com.hsj.demo.dao.UserNoticeDao;
import com.hsj.demo.entity.UserNotice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserNoticeService extends CurdService<UserNoticeDao, UserNotice> {
    @Autowired
    private UserNoticeDao userNoticeDao;

    public List<UserNotice> getByUserId(Integer id){
        return userNoticeDao.getByUserId(id);
    }
}
